package com.bsoft.gol.hcs.config;

import org.atag.sysrouter.config.ServiceConfigRepository;
import org.atag.sysrouter.service.ServiceController;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanConfiguration {

    @Bean
    public ServiceController serviceController(ServiceConfigRepository repository) {
        ServiceController serviceController = new ServiceController();
        serviceController.setRepository(repository);
        return serviceController;
    }
}